package com.student.wym.mapper;

import com.student.wym.po.Answer;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AnswerMapper {

    @Select("select * from ks_answer ka where ka.student_id = ${studentId} and ka.score = 0")
    List<Answer> findByStudentId(@Param(value = "studentId") Integer studentId);


}
